<template>
  <div class="shou-cang">
    <div class="shou-cang-header">我的收藏</div>
    <div style="height: 40px;"></div>
    <router-view :key="$route.fullPath"></router-view>
  </div>
</template>

<script>
export default {
    name: 'ShouCang',
    data(){
      return{
        username:'',
        token:'',
      }
    },
    created(){
      this.username = this.$route.query.username;
      this.token = this.$route.query.token;
      console.log('' + this.username + this.token);
      // console.log(this.$route.fullPath);
      // if (!this.$route.query.username || !this.$route.query.token) {
      this.$router.replace({ path: '/index/shoucang/hmarticle', query: { username: this.username, token: this.token ,listType:'收藏'} });
      // }
      
    }
}
</script>

<style scoped lang="less">
.shou-cang-header{
  width: 100%;
  height: 40px;
  background-color: #ffffff;
  // 下边框
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: center;
  align-items: center;
  // 定位
  position: fixed;
}
</style>